//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#ifndef _MethodWeighted_h__
#define _MethodWeighted_h__
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#include "PatternWeight.h"
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
class MethodWeighted { 

  private:


  protected:

    String*                 modelText;
    TListE <PatternWeight>* patterns;
    float                   correction;

    String*                 toString;
    
  public:

    MethodWeighted ();
    MethodWeighted (const MethodWeighted&);
    MethodWeighted (const MethodWeighted*);

    ~MethodWeighted ();

    void                    ModelText (String* modelText);
    void                    Patterns (TListE <PatternWeight>* patterns);
    void                    Correction (float correction);

    String*                 ModelText (void);
    TListE <PatternWeight>* Patterns (void);
    float                   Correction (void);

    bool                    LoadData (String* data);
    bool                    LoadData (char* data);
    
    

    MethodWeighted          operator= (const MethodWeighted& methodWeighted);

};
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#endif
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
